import { request } from "umi";

export function userList(page: number = 1) {
    let params = {
        page,
        pageSize: 117,
    }
    return request('/api/user', { params })
}
export function changeStatus(data:any) {
    
    return request('/api/user/update',{
        method:'POST', 
        data
    })

}

export function usernameList(name:string) {
    
    let params = {
        page:1,
        pageSize: 117,
        name:name
    }
    return request('/api/user', { params })
}

